import { PropsWithChildren } from "react";
import { useLaunch } from "@tarojs/taro";

import "./app.scss";
import { Provider } from "react-redux";
import { store } from "./store/store";


function App({ children }: PropsWithChildren<any>) {
  useLaunch(() => {
    console.log("App launched.");
  });
  // children 是将要会渲染的页面
  return (
    <Provider store={store}>
      {children}
    </Provider>
  );
}

export default App;
